@echo off&setlocal enabledelayedexpansion
@set path=%path%;"D:\Program Files (x86)\CodeAndWeb\TexturePacker\bin"
@md PNGDIR
for /f "usebackq tokens=*" %%d in (`dir /s /b *.pvr.ccz`) do (
@SET VarFile=%%~dpnd
@SET VarFile=!VarFile:~0,-4!
TexturePacker.exe --sheet "!VarFile!.png" "%%d" --algorithm Basic --allow-free-size --no-trim
split.py -plist "!VarFile!.plist" -png "!VarFile!.png" -dir PNGDIR
)
::del *.pvr
del out.plist
::pause